<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta http-equiv='content-type' content="text/html;charset=UTF-8">
    <meta name="author" content="">

    <title>肉品溯源商城后台管理系统</title>
    <link href="/vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">
    <link href="/vendor/metisMenu/metisMenu.min.css" rel="stylesheet">
    <link href="/dist/css/sb-admin-2.css" rel="stylesheet">
    <link href="/vendor/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">

</head>

<body>

    <div id="wrapper">
        <#include "shopMenu.ftl">
        <div id="page-wrapper">
            <div class="row">
                <div class="col-lg-12">
                    <h1 class="page-header">用户信息详情</h1>
                </div>
                <!-- /.col-lg-12 -->
            </div>
            <!-- /.row -->
            <div class="row">
                <div class="col-lg-12">
                    <div class="panel panel-default">
                        <div class="panel-heading">
                            表单数据
                        </div>
                        <div class="panel-body">
                            <div class="row">
                                <div class="col-lg-6">
                                    <form role="form" action="/shop/admin/Customer/edit" method="post">
                                        <input type="hidden" name="gid" value="${customInfo.gid}" />
                                        <div class="form-group">
                                            <label>用户名:</label>
                                            <input name='custname'  type="text"  class="form-control"  value="${customInfo.custname}" />
                                        </div>
                                        <div class="form-group">
                                            <label>用户账号:</label>
                                            <input name='username' type="text" class="form-control" readonly value="${customInfo.username}" />
                                        </div>
                                        <div class="form-group">
                                            <label>性别:</label>
                                            <#if customInfo.customsex == '1'>
                                                男<input type="radio" name="customsex"  value="1" checked />
                                                女<input type="radio" name="customsex"   value="2" />
                                                <#elseif customInfo.customsex == '2'>
                                                    男<input type="radio" name="customsex"  value="1"  />
                                                    女<input type="radio" name="customsex"   value="2" checked />
                                            </#if>
                                        </div>
                                        <div class="form-group">
                                            <label>联系人</label><br/>
                                            <input name="contacts"  class="form-control" value="${customInfo.contacts}" />
                                        </div>
										<div class="form-group">
                                            <label>联系方式</label><br/>
                                            <input name="contactsphone"  class="form-control" value="${customInfo.contactsphone}" />
                                        </div>
                                        <div class="form-group">
                                            <label>客户地址</label><br/>
                                            <input name="custaddr"  class="form-control" value="${customInfo.custaddr}" />
                                        </div>
										<div class="form-group">
                                            <label>用户等级</label>
                                            <select name='custlevel' class="form-control">
                                                <#if customInfo.custlevel  == "0">
                                                        <option value="0" selected>普通用户</option>
                                                        <option value="1">普通会员</option>
                                                        <option value="2">高级会员</option>
                                                        <option value="3">砖石会员</option>
                                                    <#elseif customInfo.custlevel  == "1">
                                                        <option value="0" >普通用户</option>
                                                        <option value="1" selected >普通会员</option>
                                                        <option value="2">高级会员</option>
                                                        <option value="3">砖石会员</option>
                                                     <#elseif customInfo.custlevel  == "2">
                                                        <option value="0" >普通用户</option>
                                                        <option value="1" >普通会员</option>
                                                        <option value="2" selected >高级会员</option>
                                                        <option value="3">砖石会员</option>
                                                    <#elseif customInfo.custlevel  == "3">
                                                        <option value="0" >普通用户</option>
                                                        <option value="1" >普通会员</option>
                                                        <option value="2">高级会员</option>
                                                        <option value="3" selected >砖石会员</option>
                                                </#if>

                                            </select>
                                        </div>
										<div class="form-group">
                                            <label>邮箱</label>
                                            <input name="contactsmail"  class="form-control" value="${customInfo.contactsmail}" />
                                        </div>


										<input type="submit" class='btn btn-outline btn-primary btn-lg btn-block' value="提交">
										
									</form>
                                </div>
                                
                            </div>
                            <!-- /.row (nested) -->
                        </div>
                        <!-- /.panel-body -->
                    </div>
                    <!-- /.panel -->
                </div>
                <!-- /.col-lg-12 -->
            </div>
            <!-- /.row -->
        </div>
        <!-- /#page-wrapper -->

    </div>
    <!-- /#wrapper -->

    <script src="../vendor/jquery/jquery.min.js"></script>
    <script src="../vendor/bootstrap/js/bootstrap.min.js"></script>
    <script src="../vendor/metisMenu/metisMenu.min.js"></script>
    <script src="../dist/js/sb-admin-2.js"></script>
    <script src="/laydate/laydate.js"></script>
    <script type="text/javascript" charset="UTF-8">
        //时间选择组件
        laydate.render({
            elem: '#test1' //指定元素
        });
        laydate.render({
            elem: '#test2' //指定元素
        });
        laydate.render({
            elem: '#test3' //指定元素
        });
    </script>

</body>

</html>
